#
# pymoz, Python extension for the Mozilla Toolkit
# Copyright (C) 2012 Malek Hadj-Ali
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#


DEPTH     = ../..
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@


include $(DEPTH)/config/autoconf.mk


include $(topsrcdir)/extensions/pymoz/pymoz.mk


MODULE = pymoz
XPI_NAME = pymoz


INSTALL_EXTENSION_ID = pymoz@pymoz.com
USE_EXTENSION_MANIFEST = 1
PREF_JS_EXPORTS = $(srcdir)/pymoz.js


DIST_FILES = install.rdf


XULAPP_DEFINES = -DEXTENSION_ID=$(INSTALL_EXTENSION_ID) \
                 -DEXTENSION_VERSION=$(PYMOZ_VERSION)-$(PYMOZ_TARGET_MINVERSION) \
                 -DTOOLKIT_MINVERSION=$(MOZ_APP_VERSION) \
                 -DTOOLKIT_MAXVERSION=$(MOZ_APP_MAXVERSION) \
                 $(NULL)


DIRS = public \
       src \
       $(NULL)


include $(topsrcdir)/config/rules.mk
